package cn.cvs.entity;

import cn.cvs.parentclass.BaseClass;

/**
 * @auth 邝志豪
 * @date 2024/1/2 17:15
 */
public final class Person extends BaseClass implements java.io.Serializable{
    //成员变量
    private String name;
    static final int age = 30;
    protected  String address;
    public String message;

    //成员方法

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Person() {
    }

    public Person(String name, String address, String message) {
        this.name = name;
        this.address = address;
        this.message = message;
    }
    @Override
    public String toString(){
        return "{name:"+name+",age:"+age+",address:"+address+",message:"+message+"}";
    }
}
